const mongoose = require('mongoose');
const {Schema} = mongoose;

const MenusSchema = new Schema({
  menuType: Number,
  menuName: String,
  icon: String,
  path: String,
  menuState: Number,
  component: String,
  parentId: [mongoose.Types.ObjectId],
  menuCode: String,
  creaTime:{
    type: Date,
    default: Date.now
  },
  updateTime:{
    type: Date,
    default: Date.now
  },
  remark: String // 备注,模型只能多不能少
});



module.exports = mongoose.model('menu', MenusSchema);